<?php
declare(strict_types=1);

namespace App\Game\Request;

use Mine\MineFormRequest;

/**
 * vip等级验证数据类
 */
class GameVipRequest extends MineFormRequest
{
    /**
     * 公共规则
     */
    public function commonRules(): array
    {
        return [];
    }

    
    /**
     * 新增数据验证规则
     * return array
     */
    public function saveRules(): array
    {
        return [
            //等级 验证
            'level' => 'required',
            //图标 验证
            'icon' => 'required',
            //达标 验证
            'amount' => 'required',
            //奖励 验证
            'refunded' => 'required',
            //周奖励 验证
            'week' => 'required',
            //月奖励 验证
            'month' => 'required',
            //日提现总额 验证
            'day_total' => 'required',
            //日提现限额 验证
            'day_limit' => 'required',
            //手续比例 验证
            'charge' => 'required',

        ];
    }
    /**
     * 更新数据验证规则
     * return array
     */
    public function updateRules(): array
    {
        return [
            //等级 验证
            'level' => 'required',
            //图标 验证
            'icon' => 'required',
            //达标 验证
            'amount' => 'required',
            //奖励 验证
            'refunded' => 'required',
            //周奖励 验证
            'week' => 'required',
            //月奖励 验证
            'month' => 'required',
            //日提现总额 验证
            'day_total' => 'required',
            //日提现限额 验证
            'day_limit' => 'required',
            //手续比例 验证
            'charge' => 'required',

        ];
    }

    
    /**
     * 字段映射名称
     * return array
     */
    public function attributes(): array
    {
        return [
            'level' => '等级',
            'icon' => '图标',
            'amount' => '达标',
            'refunded' => '奖励',
            'week' => '周奖励',
            'month' => '月奖励',
            'day_total' => '日提现总额',
            'day_limit' => '日提现限额',
            'charge' => '手续比例',

        ];
    }

}